package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class Detection implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "id")
	private String id;
	
	@ApiModelProperty(value = "客户名称")
	private String customer;
	
	@ApiModelProperty(value = "型号规格／测量范围")
	private String modelspecifications;
	
	@ApiModelProperty(value = "任务单号")
	private String taskno;
	
	@ApiModelProperty(value = "制造厂商")
	private String manufacturer;
	
	@ApiModelProperty(value = "准确度等级／MPE1")
	private String mpe1;
	
	@ApiModelProperty(value = "出场编号")
	private String exitnum;
	
	@ApiModelProperty(value = "主要标准器名称")
	private String mainstandard;
	
	@ApiModelProperty(value = "测量范围")
	private String mrange;
	
	@ApiModelProperty(value = "准确度等级／MPE2")
	private String mpe2;
	
	@ApiModelProperty(value = "证书编号")
	private String certificateno;
	
	@ApiModelProperty(value = "标准砝码")
	private String smw;
	
	@ApiModelProperty(value = "证书有效期至")
	private String certificateutil;
	
	@ApiModelProperty(value = "温度℃")
	private String temperature;
	
	@ApiModelProperty(value = "湿度%RH")
	private String humidity;
	
	@ApiModelProperty(value = "大气压力hPa")
	private String atmospheric;
	
	@ApiModelProperty(value = "空气密度mg/cm³")
	private String airdensity;
	
	@ApiModelProperty(value = "材料")
	private String stuff;
	
	@ApiModelProperty(value = "文件存放地址")
	private String fileurl;
	
	@ApiModelProperty(value = "检定依据")
	private String according;
	
	@ApiModelProperty(value = "计量标准使用前工作状况")
	private String prework;
	
	@ApiModelProperty(value = "计量标准使用后工作状况")
	private String afterwork;
	
	@ApiModelProperty(value = "检定项目")
	private String project;
	
	@ApiModelProperty(value = "检定地点")
	private String inspectionsite;
	
	@ApiModelProperty(value = "检定员")
	private String verifier;
	
	@ApiModelProperty(value = "核验员")
	private String checkver;
	
	@ApiModelProperty(value = "检定时间")
	private String qdtime;
	
	@ApiModelProperty(value = "有效日期")
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private String yxtime;
	
	@ApiModelProperty(value = "检定结论")
	private String verdict;
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	@ApiModelProperty(value = "创建时间")
	private Date createtime;
	@JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	@ApiModelProperty(value = "")
	private Date updatetime;
	
	@JsonProperty("id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id =  id;
	}
	@JsonProperty("customer")
	public String getCustomer() {
		return customer;
	}

	public void setCustomer(String customer) {
		this.customer =  customer;
	}
	@JsonProperty("modelspecifications")
	public String getModelspecifications() {
		return modelspecifications;
	}

	public void setModelspecifications(String modelspecifications) {
		this.modelspecifications =  modelspecifications;
	}
	@JsonProperty("taskno")
	public String getTaskno() {
		return taskno;
	}

	public void setTaskno(String taskno) {
		this.taskno =  taskno;
	}
	@JsonProperty("manufacturer")
	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer =  manufacturer;
	}
	@JsonProperty("mpe1")
	public String getMpe1() {
		return mpe1;
	}

	public void setMpe1(String mpe1) {
		this.mpe1 =  mpe1;
	}
	@JsonProperty("exitnum")
	public String getExitnum() {
		return exitnum;
	}

	public void setExitnum(String exitnum) {
		this.exitnum =  exitnum;
	}
	@JsonProperty("mainstandard")
	public String getMainstandard() {
		return mainstandard;
	}

	public void setMainstandard(String mainstandard) {
		this.mainstandard =  mainstandard;
	}
	@JsonProperty("mrange")
	public String getMrange() {
		return mrange;
	}

	public void setMrange(String mrange) {
		this.mrange =  mrange;
	}
	@JsonProperty("mpe2")
	public String getMpe2() {
		return mpe2;
	}

	public void setMpe2(String mpe2) {
		this.mpe2 =  mpe2;
	}
	@JsonProperty("certificateno")
	public String getCertificateno() {
		return certificateno;
	}

	public void setCertificateno(String certificateno) {
		this.certificateno =  certificateno;
	}
	@JsonProperty("smw")
	public String getSmw() {
		return smw;
	}

	public void setSmw(String smw) {
		this.smw =  smw;
	}
	@JsonProperty("certificateutil")
	public String getCertificateutil() {
		return certificateutil;
	}

	public void setCertificateutil(String certificateutil) {
		this.certificateutil =  certificateutil;
	}
	@JsonProperty("temperature")
	public String getTemperature() {
		return temperature;
	}

	public void setTemperature(String temperature) {
		this.temperature =  temperature;
	}
	@JsonProperty("humidity")
	public String getHumidity() {
		return humidity;
	}

	public void setHumidity(String humidity) {
		this.humidity =  humidity;
	}
	@JsonProperty("atmospheric")
	public String getAtmospheric() {
		return atmospheric;
	}

	public void setAtmospheric(String atmospheric) {
		this.atmospheric =  atmospheric;
	}
	@JsonProperty("airdensity")
	public String getAirdensity() {
		return airdensity;
	}

	public void setAirdensity(String airdensity) {
		this.airdensity =  airdensity;
	}
	@JsonProperty("stuff")
	public String getStuff() {
		return stuff;
	}

	public void setStuff(String stuff) {
		this.stuff =  stuff;
	}
	@JsonProperty("fileurl")
	public String getFileurl() {
		return fileurl;
	}

	public void setFileurl(String fileurl) {
		this.fileurl =  fileurl;
	}
	@JsonProperty("according")
	public String getAccording() {
		return according;
	}

	public void setAccording(String according) {
		this.according =  according;
	}
	@JsonProperty("prework")
	public String getPrework() {
		return prework;
	}

	public void setPrework(String prework) {
		this.prework =  prework;
	}
	@JsonProperty("afterwork")
	public String getAfterwork() {
		return afterwork;
	}

	public void setAfterwork(String afterwork) {
		this.afterwork =  afterwork;
	}
	@JsonProperty("project")
	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project =  project;
	}
	@JsonProperty("inspectionsite")
	public String getInspectionsite() {
		return inspectionsite;
	}

	public void setInspectionsite(String inspectionsite) {
		this.inspectionsite =  inspectionsite;
	}
	@JsonProperty("verifier")
	public String getVerifier() {
		return verifier;
	}

	public void setVerifier(String verifier) {
		this.verifier =  verifier;
	}
	@JsonProperty("checkver")
	public String getCheckver() {
		return checkver;
	}

	public void setCheckver(String checkver) {
		this.checkver =  checkver;
	}
	@JsonProperty("qdtime")
	public String getQdtime() {
		return qdtime;
	}

	public void setQdtime(String qdtime) {
		this.qdtime =  qdtime;
	}
	@JsonProperty("yxtime")
	public String getYxtime() {
		return yxtime;
	}

	public void setYxtime(String yxtime) {
		this.yxtime =  yxtime;
	}
	@JsonProperty("verdict")
	public String getVerdict() {
		return verdict;
	}

	public void setVerdict(String verdict) {
		this.verdict =  verdict;
	}
	@JsonProperty("createtime")
	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime =  createtime;
	}
	@JsonProperty("updatetime")
	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime =  updatetime;
	}


	public Detection(String id,String customer,String modelspecifications,String taskno,String manufacturer,String mpe1,String exitnum,String mainstandard,String mrange,String mpe2,String certificateno,String smw,String certificateutil,String temperature,String humidity,String atmospheric,String airdensity,String stuff,String fileurl,String according,String prework,String afterwork,String project,String inspectionsite,String verifier,String checkver,String qdtime,String yxtime,String verdict,Date createtime,Date updatetime) {
		
		this.id = id;
		
		this.customer = customer;
		
		this.modelspecifications = modelspecifications;
		
		this.taskno = taskno;
		
		this.manufacturer = manufacturer;
		
		this.mpe1 = mpe1;
		
		this.exitnum = exitnum;
		
		this.mainstandard = mainstandard;
		
		this.mrange = mrange;
		
		this.mpe2 = mpe2;
		
		this.certificateno = certificateno;
		
		this.smw = smw;
		
		this.certificateutil = certificateutil;
		
		this.temperature = temperature;
		
		this.humidity = humidity;
		
		this.atmospheric = atmospheric;
		
		this.airdensity = airdensity;
		
		this.stuff = stuff;
		
		this.fileurl = fileurl;
		
		this.according = according;
		
		this.prework = prework;
		
		this.afterwork = afterwork;
		
		this.project = project;
		
		this.inspectionsite = inspectionsite;
		
		this.verifier = verifier;
		
		this.checkver = checkver;
		
		this.qdtime = qdtime;
		
		this.yxtime = yxtime;
		
		this.verdict = verdict;
		
		this.createtime = createtime;
		
		this.updatetime = updatetime;
		
	}

	public Detection() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}